#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	getchar();
	for (int i = 0; i < n; i++) {
//		getchar();
		char arr[100];
		gets(arr);
		size_t len = strlen(arr);
		int k = 0;
		for (int j = 3; j < len; j++) {
			if (arr[j] == ',' && arr[j - 1] == 'g' && arr[j - 2] == 'n' && arr[j - 3] == 'o') {
				k = 1;
				break;
			}
		}
		if (k == 1 && arr[len - 2] == 'g' && arr[len - 3] == 'n' && arr[len - 4] == 'o') {
			int l = 0;
			for (int i = len - 1; i >= 0; i--) {
				if (arr[i] == ' ') {
					l++;
				}
				if (l == 3) {
					arr[i] = 0;
				}
			}
			printf("%s", arr);
			printf("qiao ben zhong.\n");
			k = 2;
		}
		if (k != 2) {
			printf("Skipped\n");
		}
	}
	return 0;
}